package com.ny.mapper;

import java.util.List;
import com.ny.domain.MemberConsumptionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * MemberConsumptionMapper
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Mapper
public interface MemberConsumptionMapper {

    /**
     * 根据会员ID查询会员消费记录信息
     *
     * @Param memberId 会员ID
     * @Return List<MemberConsumptionDO>
     */
    List<MemberConsumptionDO> selectByMemberId(@Param("memberId") Integer memberId);

    /**
     * 插入会员消费记录信息
     *
     * @Param memberConsumptionDO 会员消费记录信息
     * @Return 插入结果
     */
    int insert(MemberConsumptionDO memberConsumptionDO);

    /**
     * 通过ID查询消费记录
     * @Param memberId
     * @Return MemberConsumptionDO
     */
    MemberConsumptionDO selectById(@Param("id") Integer id);
}
